libxl: make libxl__need_xenpv_qemu() operate on domain config
authorJuergen Gross <jgross@suse.com>
Wed, 30 Mar 2016 14:46:45 +0000 (16:46 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 6 Apr 2016 13:57:59 +0000 (14:57 +0100)
commit7e82b37173d1a1820e91b591201ae0bd5efd2a1d
tree8e55b0b8fbd3e4d44ac3f5948183619817059714
parent1a7ac00fa69de7431349d9583a2b8ed724711360
libxl: make libxl__need_xenpv_qemu() operate on domain config

libxl__need_xenpv_qemu() is called with configuration data for console,
vfbs, disks and channels today in order to evaluate the need for
starting a device model for a pv domain.

The console data is local to the caller and setup in a way to never
require a device model. All other data is taken from the domain config
structure.

In order to support other device backends via qemu change the interface
of libxl__need_xenpv_qemu() to take the domain config structure as
input instead of the single device arrays.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_create.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h